﻿using CloudDiamonds.Models.DBModels;
using CloudDiamonds.Models.Manager;
using CloudDiamonds.Models.Manager.Diamonds;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using System.Web.Http;
using Yunzuan.Foundation.Entities;
using Yunzuan.Foundation.Web_api;

namespace WholesalerService
{
    /// <summary>
    /// 上传文件结果
    /// </summary>
    [MessageContract]
    public class UpFileResult
    {
        [MessageHeader]
        public bool IsSuccess { get; set; }
        [MessageHeader]
        public string Message { get; set; }

    }

    /// <summary>
    /// 上传文件
    /// </summary>
    [MessageContract]
    public class FileUploadMessage
    {
        [MessageHeader(MustUnderstand = true)]
        public string FileName;//文件名（类似键）

        [MessageBodyMember(Order = 1)]
        public Stream FileData;//文件流（类似值）
    }
    /// <summary>
    /// 上传图片
    /// </summary> 
    [MessageContract, KnownType(typeof(ImageMessage))]
    public class ImageUploadMessage
    {
        [MessageHeader(MustUnderstand = true)]
        public string TypeName;//类型名

        [MessageHeader]
        public ImageMessage[] ImageDatas; //文件集合

        [MessageHeader]
        public string type;
    }
    /// <summary>
    /// 单个文件
    /// </summary>
    [DataContract]
    public class ImageMessage
    {
        [DataMember(Name = "FileName", Order = 1)]
        public string FileName { get; set; }//文件名（类似键）

        [DataMember(Name = "ImageData", Order = 2)]
        public byte[] ImageData { get; set; }//代替文件流（类似值）
    }

    // 注意: 使用“重构”菜单上的“重命名”命令，可以同时更改代码和配置文件中的接口名“IUser”。
    [ServiceContract]  //说明接口是一个WCF的接口
    public interface IWholesaler
    {
        //[OperationContract(Action = "UploadFile", IsOneWay = true)]
        //void UploadFile(FileUploadMessage request);//文件上传

        [OperationContract]
        string DownTemplate();//下载上传模板

        [OperationContract]
        string DownEntryTemplate();//下载录单模板

        [OperationContract]
        string ExportAllOrder(string exportAllParam);//所有订单下载(仅供管理员)

        [OperationContract]
        string DownloadOrder(string downloadOrderParam);//文件下载(团队销售订单)

        [OperationContract]
        string DownloadAllOrder(string downloadAllOrderParam);//文件下载(团队管理员)

        [OperationContract]
        string ExportOrders(string exportOrdersParam);//文件下载(客户订单)

        [OperationContract]  //说明是一个WCF接口的方法
        string DeliveryOrders(string deliveryOrdersParam); //文件下载（团队待到货订单）

        [OperationContract]
        string GetDeliverys(string getDeliverysParam);//查看取货单

        [OperationContract]
        string GetArrivals(string getArrivalsParam);//到货日期查询 9-28

        [OperationContract]
        UpFileResult UploadFile(FileUploadMessage request);//文件上传

        [OperationContract]
        UpFileResult UploadImage(ImageUploadMessage imageParam);//上传图片（成品 统包）
        [OperationContract]
        string ContactSupplier(string contactParam);//供应商联系方式 11-5

        [OperationContract]  //说明是一个WCF接口的方法
        string ReviseAnOrder(string reviseAnOrderParam); //单个订单改价(单个操作 卖出退点 卖出RMB)

        [OperationContract]  //说明是一个WCF接口的方法
        string ReviseOrders(string reviseOrdersParam); //批量订单改价(单个或多个操作 卖出退点+1 或卖出RMB*95折)

        [OperationContract]  //说明是一个WCF接口的方法
        string RemarkOrder(string remarkOrderParam); //备注订单

        [OperationContract]  //说明是一个WCF接口的方法
        string ArrivalOrders(string arrivalOrdersParam); //入库订单（处理（2采购成功，待入库）的订单到 (3入库成功，待出库)）

        [OperationContract]
        string CancelArrivalOrders(string cancelArrivalOrdersParam);//取消到货

        [OperationContract]  //说明是一个WCF接口的方法
        string PurchaseOrder(string purchaseOrderParam); //采购订单（处理（1下单成功，待采购）的订单到 (2采购成功，待入库)）

        [OperationContract]  //说明是一个WCF接口的方法
        string CancelOrders(string cancelOrdersParam); //作废订单（1下单成功，采购中）

        [OperationContract]
        string StockOrders(string stockOrdersParam);//自留订单

        [OperationContract]
        string ReturnOrders(string returnOrdersParam);//退回订单

        [OperationContract]
        string ExchangeOrders(string exchangeOrdersParam);//修改采购汇率 9-6

        [OperationContract]
        string ModFreight(string freightParam);//修改订单运费 11-11

        [OperationContract]  //说明是一个WCF接口的方法
        string ModifyPurchaseUserID(string modifyPurchaseUserIDParam); //转移订单

        [OperationContract]  //说明是一个WCF接口的方法
        string GetOrders(string getOrdersParam); //订单列表

        [OperationContract]  //说明是一个WCF接口的方法
        string SettleOrders(string settleOrdersParam); //订单结算 11-2 数据库字段排序

        [OperationContract]  //说明是一个WCF接口的方法
        string GetUsers(string getUsersParam); //团队列表

        [OperationContract]
        string GetSales(string getSalesParam);//业务列表

        [OperationContract]
        string GetSaleList(string getSaleListParam);//所有业务 9-6

        [OperationContract]
        string GetRapnetList();//报价列表

        [OperationContract]
        string GetPurchases(string getPurchasesParam);//采购列表

        [OperationContract]
        string GetPurchaseList(string getPurchaseListParam);//所有采购

        [OperationContract]
        string GetPurchasers(string getPurchasersParam);//所有纯采购 9-26


        [OperationContract]
        string GetNotices(string getNoticesParam);//所有公告列表

        [OperationContract]
        string GetNoticeList(string getNoticeListParam);//发布中公告列表 11-16

        [OperationContract]
        string GetGlobals(string getGlobalsParam);//所有全局配置列表 11-10  IList

        [OperationContract]
        string GetSettingInfo(string settingInfoParam);//单个全局

        [OperationContract]
        string EditGlobal(string editGlobalParam);//修改全局 11-10

        [OperationContract]  //说明是一个WCF接口的方法
        string GetSuppliers(string getSuppliersParam); //供应商列表

        [OperationContract]
        string GetSupplierList(string getSupplierListParam); //所有供应商 9-6

        [OperationContract]  //说明是一个WCF接口的方法
        string GetCharges(string getChargesParam); //充值记录

        [OperationContract]
        string ExportCharges(string exportChargesParam); //导出充值记录 12-3

        [OperationContract]
        string GetExportUrl(string exportParam);//导出裸钻

        //收支（流水Flow）start  12-3

        [OperationContract]
        string GetFlows(string getFlowsParam); //收支明细（流水）

        [OperationContract]
        string GetFlow(string getFlowParam);//收支详情

        [OperationContract]
        string AddFlow(string addFlowParam);//添加流水

        [OperationContract]
        string FlowNumber(string flowNumberParam);//流水状态个数统计

        [OperationContract]
        string EditFlow(string editFlowParam);//修改流水

        [OperationContract]
        string ExportFlows(string expFlowsParam);//导出银行流水

        [OperationContract]
        string GetOrderIDsDetail(string orderIDsParam);//订单详情

        //---核心start----

        [OperationContract]
        string ModifyFlow(string modifyFlowParam);//审核流水 -重中之重

        [OperationContract]
        string ModifyExchange(string modifyExchangeParam);//换美金/采购汇率/兑换记录 01-04

        [OperationContract]
        string BankTransfer(string bankTransferParam);//转账到

        [OperationContract]
        string DirectCharge(string directChargeParam);//直接充值 01-05

        //---核心end---

        //收支（流水Flow）end

        [OperationContract]
        string OnShelves(string param);//上架

        [OperationContract]
        string OffShelves(string param);//下架

        //银行账户start
        [OperationContract]
        string GetBanks(string getBanksParam);//银行账户列表

        [OperationContract]
        string GetBankList(string getBankListParam);//银行账户列表Ilist

        [OperationContract]
        string GetBank(string getBankParam);//银行账户

        [OperationContract]
        string AddBank(string addBankParam);//添加账户

        [OperationContract]
        string EditBank(string editBankParam);//账户对账
        //银行账户end

        [OperationContract]
        string GetPays(string getPaysParam);//消费记录

        [OperationContract]
        string ModifySalesUserID(string modifySalesUserIDParam);//移交客户

        [OperationContract]
        string GetShipOrders(string getShipOrdersParam);//出货单订单列表

        [OperationContract]
        string PrintShipOrders(string printShipOrdersParam);//打印出货单 9-20

        [OperationContract]  //说明是一个WCF接口的方法
        string SubmitOrder(string submmitOrderParam); //提交订单

        [OperationContract]  //说明是一个WCF接口的方法
        string EntryOrder(string entryOrderParam);//订单录入（单条）

        [OperationContract]
        string EntryCheck(string entryCheckParam);//录入检查 9-27

        [OperationContract]  //说明是一个WCF接口的方法
        string AddToCart(string addToCartParam); //添加购物车(单个)

        [OperationContract]
        string MultiAddToCart(string multiAddToCartParam);//添加购物车(多个)

        [OperationContract]
        string RemoveFromCart(string removeFromCartParam);//移出购物车

        [OperationContract]  //说明是一个WCF接口的方法
        string GetCartInfos(string cartInfoParam);//获取购物车详情列表

        [OperationContract]  //说明是一个WCF接口的方法
        string GetCarts(string cartsParam);//获取购物车列表

        [OperationContract]  //说明是一个WCF接口的方法
        string GetInventoryInfos(string inventoryInfoParam);//获取在线库存（多个） //PageList<InventoryInfoResult>     

        [OperationContract]  //说明是一个WCF接口的方法
        string GetInventoryInfo(string inventoryInfoParam);//获取在线库存（单个） //InventoryInfo

        [OperationContract]
        string GetSupplierInfo(string supplierInfoParam);//单个供应商

        [OperationContract]
        string UploadFileState(string uploadFileStateParam);//上传模式

        [OperationContract]
        string AddNotice(string addNoticeParam);//发布公告

        [OperationContract]  //说明是一个WCF接口的方法
        string AddCharge(string addChargeParam);//新增记账明细

        [OperationContract]
        string EditNotice(string editNoticeParam);//编辑公告

        [OperationContract]  //说明是一个WCF接口的方法
        string EditCharge(string editChargeParam);//确认充值

        [OperationContract]
        string EditShipNo(string editShipNoParam);//支付出货单

        [OperationContract]
        string PayOrders(string payOrdersParam);//收款

        [OperationContract]
        string PayBackOrders(string payOrdersParam);//收款

        [OperationContract]
        string ReceiptOrders(string payOrdersParam);//付款

        [OperationContract]
        string PayUSDOrders(string payUSDOrdersParam);//USD支付订单

        [OperationContract]
        string DelOrders(string delOrdersParam);//删除订单 9-29
        [OperationContract]
        string DelOrdersByOwner(string delOrdersParam);//删除现货订单 （备用表，非订单表）

        [OperationContract]  //说明是一个WCF接口的方法
        string EditSupplier(string editSupplierParam);//编辑供应商

        [OperationContract]  //说明是一个WCF接口的方法
        string AddUser(string addUserParam);//新增团队（公司团队）

        [OperationContract]  //说明是一个WCF接口的方法
        string AddSupplier(string addSupplierParam);//新增供应商

        [OperationContract]  //说明是一个WCF接口的方法
        string EditUser(string editUserParam);//编辑团队（公司团队）

        [OperationContract]
        string SupplierRegIsExist(string supplierRegIsExistParam);//供应商简称是否已存在

        [OperationContract]  //说明是一个WCF接口的方法
        string UserRegIsExist(string userRegIsExistParam);//团队新增是否存在（公司员工）

        [OperationContract]  //说明是一个WCF接口的方法
        string UserLogin(string userLoginParam);//团队登录（公司员工）

        [OperationContract]
        string TeamModifyPassword(string teamModifyPasswordParam);//团队修改密码（公司团队） 9-21

        [OperationContract]
        string GetNoticeInfo(string noticeInfoParam);//公告

        [OperationContract]
        string ViewNoticeInfo(string noticeInfoParam);//浏览公告

        [OperationContract]
        string GetOrderInfo(string orderInfoParam);//获取订单信息

        [OperationContract]  //说明是一个WCF接口的方法
        string GetChargeInfo(string chargeInfoParam);//获取记账明细（公司团队)

        [OperationContract]  //说明是一个WCF接口的方法
        string GetUserInfo(string userInfoParam);//获取员工资料（公司员工)

        [OperationContract]  //说明是一个WCF接口的方法
        string GetSysSettingInfo();//获取所有配置

        //[OperationContract]
        //string GetRate();//获取售出汇率

        [OperationContract]
        string GetRate(string getRateParam);//获取售出汇率 11-10

        [OperationContract]
        string GetExchangeRate();//获取采购汇率 9-6

        [OperationContract]  //说明是一个WCF接口的方法
        string EditSysSettingInfo(string editSysSettingInfoParam);//修改配置

        [OperationContract]
        string AddShip(string addShipParam);//制作出货单

        [OperationContract]
        string EditShip(string editShipParam);//出货

        [OperationContract]
        string Shipment(string shipParam);//确认出货

        [OperationContract]
        string UpdateLog();//更新日志 9-29

        [OperationContract]
        string UpdateRapXml();//更本地新报价表XML 10-8

        [OperationContract]
        string OrderReport(string reportParam);//报表

        /// <summary>
        /// 裸钻管理（新增 修改 删除 批量调价）
        /// </summary>
        /// <param name="modifyDiaParam"></param>
        /// <returns></returns>

        [OperationContract]
        string ModifyDia(string modifyDiaParam);//修改裸钻

        [OperationContract]
        string AddDia(string addDiaParam);//添加裸钻

        [OperationContract]
        string DelDia(string delDiaParam);//删除裸钻

        [OperationContract]
        string BatchDia(string batchDiaParam);//批量调整裸钻价格

        [OperationContract]
        string BatchUpdateDia(string batchUpdateDiaParam);//批量调整裸钻参数
 
        /// <summary>
        /// 用户活跃度AU
        /// </summary>
        /// <returns></returns>

        [OperationContract]
        string GetActiveTime(string activeTimeParam);//活跃时间

        [OperationContract]
        string GetActiveArea(string activeAreaParam);//活跃地区

        /// <summary>
        /// 兑换记录 01-03
        /// </summary>
        /// <param name="getExchangesParam"></param>
        /// <returns></returns>

        [OperationContract]
        string GetExchanges(string getExchangesParam);

        //[OperationContract]
        //string GetExchangeList(string getExchangeListParam);

        [OperationContract]
        string ComputePurchaseExchange(string computePurchaseExchangeParam);//计算采购汇率

        /// <summary>
        /// 统计方法
        /// </summary>
        [OperationContract]
        string OrderNumber(string orderNumberParam);//订单个数统计

        [OperationContract]
        string SettleOrderNumber(string settleOrderNumberParam);//结算订单个数统计 11-2

        [OperationContract]
        string OrderPaymentStatusNumber(string orderPaymentStatusNumberParam);//订单支付状态统计

        [OperationContract]
        string SettleOrderPaymentStatusNumber(string settleOrderPaymentStatusNumberParam);//结算订单支付状态统计  11-2

        [OperationContract]
        string OrderMonth(string orderMonthParam);//每月订单个数统计 9-22
 

        [OperationContract]
        string ChargeNumber(string chargeNumberParam);//充值个数统计

        [OperationContract]
        string CartNumber(string cartNumberParam);//购物车个数  
 
        #region 统包Parcel 方法
        /// <summary>
        /// //统包列表
        /// </summary>
        /// <param name="getParcelsParam"></param>
        /// <returns></returns>
        [OperationContract]
        string GetParcels(string getParcelsParam);
        /// <summary>
        /// 单个统包查询
        /// </summary>
        /// <param name="getParcelParam"></param>
        /// <returns></returns>
        [OperationContract]
        string GetParcel(string getParcelParam);
        //修改统包
        [OperationContract]
        string ModParcel(string modParcelsParam);

        //添加统包
        [OperationContract]
        string AddParcel(string modParcelsParam);

        //删除统包
        [OperationContract]
        string DeleteParcel(string delParcelsParam);

        /// <summary>
        /// 统包提交订单
        /// </summary>
        /// <param name="createOrderByCartParam"></param>
        /// <returns></returns>
        [OperationContract]
        string AddParcelsOrder(string createOrderByCartParam);


        /// <summary>
        ///加入购物车
        /// </summary>
        /// <param name="ringParam"></param>
        /// <returns></returns>
        [OperationContract]
        string AddParcelsCart(string ParcelsParam);

        /// <summary>
        /// 获取成品购物车业务列表
        /// </summary>
        /// <param name="catsParam"></param>
        /// <returns></returns>
        [OperationContract]
        string GetParcelCartSales(string cartsParam);
        /// <summary>
        /// 购物车列表
        /// </summary>
        /// <param name="cartsParam"></param>
        /// <returns></returns>
        [OperationContract]
        string GetParcelCarts(string cartsParam);
        /// <summary>
        /// 移除购物车
        /// </summary>
        /// <param name="ringCartId"></param>
        /// <returns></returns>
        [OperationContract]
        string RemoveParcelsCart(string removeFromCartParam);
        /// <summary>
        ///订单状态统计
        /// </summary>
        /// <param name="orderNumberParam"></param>
        /// <returns></returns>
        [OperationContract]
        string ParcelOrderNumber(string orderNumberParam);


        /// <summary>
        /// 支付状态统计
        /// </summary>
        /// <param name="orderPaymentStatusNumberParam"></param>
        /// <returns></returns>
        [OperationContract]
        string ParcelOrderPaymentStatusNumber(string orderPaymentStatusNumberParam);
        /// <summary>
        /// 统包订单
        /// </summary>
        /// <param name="catsParam"></param>
        /// <returns></returns>
        [OperationContract]
        string GetParcelOrders(string ordersParam);


        //统包订单相关

        /// <summary>
        /// （单个操作）备注订单 (销售员备注、采购员备注、物流员备注)  --含事务
        /// </summary>
        /// <param name="remarkOrdersParam"></param>
        /// <returns></returns>
        [OperationContract]
        string ParcelRemarkOrder(string remarkOrderParam);
        /// <summary>
        /// 批量订单改价(单个或多个操作 卖出退点+1 或卖出RMB*95折)
        /// </summary>
        /// <param name="reviseOrdersParam"></param>
        /// <returns></returns>
        [OperationContract]
        string ParcelReviseOrders(string reviseOrdersParam);

        /// <summary>
        /// 打印出货单 9-20
        /// </summary>
        /// <param name="deliveryOrdersParam"></param>
        /// <returns></returns>
        [OperationContract]
        string ParcelPrintShipOrders(string printShipOrdersParam);
        /// <summary>
        /// 确认出货
        /// </summary>
        /// <param name="shipParam"></param>
        /// <returns></returns>
        [OperationContract]
        string Parcelshipment(string shipParam);
        /// <summary>
        /// 作废订单（1下单成功，采购中） --含事务     （改变订单状态 从1到10）
        /// </summary>
        /// <param name="cancelOrdersParam"></param>
        /// <returns></returns>
        [OperationContract]
        string ParcelCancelOrders(string cancelOrdersParam);


        /// <summary>
        /// 退回
        /// </summary>
        /// <param name="returnOrdersParam"></param>
        /// <returns></returns>
        [OperationContract]
        string ParcelReturnOrders(string returnOrdersParam);
        //删除作废订单
        [OperationContract]
        string ParcelDelOrders(string delOrdersParam);

        /// <summary>
        /// 转移订单（修改采购）--含事务        （不改变订单状态）"{'OrderIDs':'1111，22222','PurchaseUserID':'" + $("#_purchasesUserIDs").val() + "'}",
        /// </summary>
        /// <param name="modifyPurchaseUserIDParam"></param>
        /// <returns></returns>
        [OperationContract]
        string ParcelModifyPurchaseUserID(string modifyPurchaseUserIDParam);
        /// <summary>
        /// 确认到货 （待出货 入库订单）（处理（2采购成功，待入库）的订单到 (3入库成功，待出库)） --含事务   （改变订单状态 从2到3）{'OrderIDs':'1111，22222','ArrivalTime':'" + $("#_arrivaltime_").val() + "','ApplyID':'" + @Session["UserID"] + "'}
        /// </summary>
        /// <param name="arrivalOrdersParam"></param>
        /// <returns></returns>
        [OperationContract]
        string ParcelArrivalOrders(string arrivalOrdersParam);
        /// <summary>
        /// 取消到货 取消入库 {'OrderIDs':'1111，22222','ApplyID':'" + @Session["UserID"] + "'}
        /// </summary>
        /// <param name="cancelArrivalOrdersParam"></param>
        /// <returns></returns>
        [OperationContract]
        string ParcelCancelArrivalOrders(string cancelArrivalOrdersParam);
        /// <summary>
        /// 付款{'OrderIDs':'" + _orderIDs + "','BankID':'" + $("#_receiptBankID").val() + "','ReceiptAmount':'" + $("#_receiptAmount").val() + "','ArrivalTime':'" + $("#receiptarrivalTime").val() + "','ApplyID':'" + @Session["UserID"] + "'}",    
        /// </summary>
        /// <param name="receiptOrdersParam"></param>
        /// <returns></returns>
        [OperationContract]
        string ParcelReceiptOrders(string receiptOrdersParam);
        /// <summary>
        /// 修改采购汇率 9-6 {'OrderIDs':'" + _orderIDs + "','PurchaseExchangerate':'"+ $("#PurchaseExchangerate").val() +"'}
        /// </summary>
        /// <param name="arrivalOrdersParam"></param>
        /// <returns></returns>
        [OperationContract]
        string ParcelExchangeOrders(string exchangeOrdersParam);

        /// <summary>
        /// 修改订单运费￥  {'OrderIDs':'" + _orderIDs + "','Freight':'"+ $("#_freight").val() +"'}
        /// </summary>
        /// <param name="reviseOrdersParam"></param>
        /// <returns></returns>
        [OperationContract]
        string ParcelModFreight(string freightParam);

        /// <summary>
        /// 制作出货单 {'OrderIDs':'" + _orderIDs + "'}
        /// </summary>
        /// <param name="addShipParam"></param>
        /// <returns></returns>
        [OperationContract]
        string ParcelAddShip(string addShipParam);

        /// <summary>
        /// 余额收款（1.更新订单支付状态为1已支付，2.更新客户余额） {'OrderIDs':'" + _orderIDs + "','openid':'" + $("#_payCustID").html()  + "','Currency':'" + $("#_currency").val()  + "'}
        /// </summary>
        /// <param name="stockOrdersParam"></param>
        /// <returns></returns>
        [OperationContract]
        string ParcelPayOrders(string payOrdersParam);
        //自留 {'OrderIDs':'" + _orderIDs + "','SalesRemarks':'" + $("#_stockRemarks").val() + "','SalesUserID':'" + @Session["UserID"] + "','openid':'" + $("#_stockCustomerID").html() + "'}
        [OperationContract]
        string ParcelstockOrders(string stockOrdersParam);
        /// <summary>
        /// (单个操作)采购订单（处理（1下单成功，待采购）的订单到 (2采购成功，待入库)） --含事务    （改变订单状态 从1到2）
        /// </summary>
        /// <param name="purchaseOrdersParam"></param>
        /// <returns></returns>
        [OperationContract]
        string ParcelPurchaseOrder(string purchaseOrderParam);
        /// <summary>
        /// 单个订单
        /// </summary>
        /// <param name="orderInfoParam"></param>
        /// <returns></returns>
        [OperationContract]
        string GetParcelOrderInfo(string orderInfoParam);
        /// <summary>
        /// 修改订单
        /// </summary>
        /// <param name="editOrderInfoParam"></param>
        /// <returns></returns>
        [OperationContract]
        string EditParcelOrderInfo(string editOrderInfoParam);

        /// <summary>
        /// 作废订单
        /// </summary>
        /// <param name="CancelParcelOrdersParam"></param>
        /// <returns></returns>
        [OperationContract]
        string CancelParcelOrders(string cancelParcelOrdersParam);
        #endregion

        /// <summary>
        /// 成品方法 11-21
        /// </summary>

        [OperationContract]
        string GetInlays(string getInlaysParam);//成品列表 11-21

        [OperationContract]
        string ModInlays(string modInlaysParam);//成品修改

        [OperationContract]
        string AddInlays(string addInlaysParam);//成品添加

        [OperationContract]
        string DeleteInlays(string delInlaysParam);//成品删除

        [OperationContract]
        string GetInlay(string getInlayParam);//单个成品详情

        [OperationContract]
        string AddRingsCart(string ringsParam);//加入购物车

        [OperationContract]
        string GetRingCarts(string cartsParam);//购物车列表

        [OperationContract]
        string RemoveRingsCart(string removeFromCartParam);//移除购物车

        [OperationContract]
        string AddRingsOrder(string createOrderByCartParam);//提交订单

        [OperationContract]
        string GetRingOrders(string ordersParam);//成品订单

        [OperationContract]
        string GetRingOrderInfo(string ordersParam);//单个订单

        [OperationContract]
        string EditRingOrderInfo(string editOrdersParam);//修改订单

        [OperationContract]
        string CancelRingOrders(string cancelRingOrdersParam);//作废订单

        [OperationContract]
        string RingOrderNumber(string orderNumberParam);//订单状态统计

        [OperationContract]
        string RingOrderPaymentStatusNumber(string orderPaymentStatusNumberParam);//订单支付统计

        /// <summary>
        /// 过滤中心供应商
        /// </summary>
        /// <returns></returns>

        [OperationContract]
        string GetCenterSuppliers();//远程供应商列表 12-27

        [OperationContract]
        string GetCenterSupplier(string getCenterSupplierParam);//单个远程供应商 12-27

        [OperationContract]
        string GetSuppliersSet(); //得到多个设置

        [OperationContract]
        string SetSupplier(string param); //单个设置黑名单

        [OperationContract]
        string SetSupplierWhite(string param); //单个设置白名单

        [OperationContract]
        string GetSupplierSet(string param);//得到单个设置

        [OperationContract]
        string SetSuppliers(string param); //批量设置

        [OperationContract]
        int DelSupplier(string setSupplierParam);
        /// <summary>
        /// 裸钻库存批量修改（需要签名）
        /// </summary>
        /// <param name="udateInventoryParam"></param>
        /// <returns></returns>
        [OperationContract]
        string BatchUpStockData(string batchDiaParam);
        [OperationContract]
        string ExportAllOrderByParam(string exportAllParam);

        [OperationContract]
        string GetNotice();
        [OperationContract]
        string GetInventoryInfosCount(string inventoryInfoParam);

        [OperationContract]
        string GetLink();
        [OperationContract]
        string UpdateLink(string param);
        [OperationContract]
        string GetRapnetByParam(string param);

        //%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%成品订单相关%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
        [OperationContract]  //说明是一个WCF接口的方法
        string RingRemarkOrder(string remarkOrderParam); //备注订单

        [OperationContract]  //说明是一个WCF接口的方法
        string RingReviseOrders(string reviseOrdersParam); //批量订单改价(单个或多个操作卖出RMB*95折)

        [OperationContract]
        string RingPrintShipOrders(string printShipOrdersParam);//打印出货单

        [OperationContract]
        string RingShipment(string shipParam);//确认出货
        [OperationContract]
        string RingCancelOrders(string cancelOrdersParam);

        [OperationContract]
        string RingReturnOrders(string returnOrdersParam);//退回订单
        [OperationContract]
        string RingDelOrders(string delOrdersParam);//删除订单 9-29

        /// <summary>
        /// 转移订单（修改采购）--"{'OrderIDs':'1111，22222','PurchaseUserID':'" + $("#_purchasesUserID").val() + "'}",
        /// </summary>
        /// <param name="modifyPurchaseUserIDParam"></param>
        /// <returns></returns>
        [OperationContract]
        string RingModifyPurchaseUserID(string modifyPurchaseUserIDParam);
        [OperationContract]
        /// <summary>
        /// 确认到货 （待出货 入库订单）（处理（2采购成功，待入库）的订单到 (3入库成功，待出库)） （改变订单状态 从2到3）{'OrderIDs':'1111，22222','ArrivalTime':'" + $("#_arrivaltime_").val() + "','ApplyID':'" + @Session["UserID"] + "'}
        /// </summary>
        /// <param name="arrivalOrdersParam"></param>
        /// <returns></returns>
        string RingArrivalOrders(string arrivalOrdersParam);
        [OperationContract]
        /// <summary>
        /// 取消到货 取消入库 {'OrderIDs':'1111，22222','ApplyID':'" + @Session["UserID"] + "'}
        /// </summary>
        /// <param name="cancelArrivalOrdersParam"></param>
        /// <returns></returns>
        string RingCancelArrivalOrders(string cancelArrivalOrdersParam);
        [OperationContract]
        /// <summary>
        /// 付款{'OrderIDs':'" + _orderIDs + "','BankID':'" + $("#_receiptBankID").val() + "','ReceiptAmount':'" + $("#_receiptAmount").val() + "','ArrivalTime':'" + $("#receiptarrivalTime").val() + "','ApplyID':'" + @Session["UserID"] + "'}",    
        /// </summary>
        /// <param name="receiptOrdersParam"></param>
        /// <returns></returns>
        string RingReceiptOrders(string receiptOrdersParam);

        [OperationContract]
        /// <summary>
        /// 修改采购汇率 {'OrderIDs':'" + _orderIDs + "','PurchaseExchangerate':'"+ $("#PurchaseExchangerate").val() +"'}
        /// </summary>
        /// <param name="arrivalOrdersParam"></param>
        /// <returns></returns>
        string RingExchangeOrders(string exchangeOrdersParam);
        [OperationContract]
        /// <summary>
        /// 修改订单运费￥  {'OrderIDs':'" + _orderIDs + "','Freight':'"+ $("#_freight").val() +"'}
        /// </summary>
        /// <param name="reviseOrdersParam"></param>
        /// <returns></returns>
        string RingModFreight(string freightParam);
        [OperationContract]
        /// <summary>
        /// 制作出货单 {'OrderIDs':'" + _orderIDs + "'}
        /// </summary>
        /// <param name="addShipParam"></param>
        /// <returns></returns>
        string RingAddShip(string addShipParam);
        [OperationContract]
        /// <summary>
        /// 余额收款（1.更新订单支付状态为1已支付，2.更新客户余额） {'OrderIDs':'" + _orderIDs + "','openid':'" + $("#_payCustID").html()  + "','Currency':'" + $("#_currency").val()  + "'}
        /// </summary>
        /// <param name="stockOrdersParam"></param>
        /// <returns></returns>
        string RingPayOrders(string payOrdersParam);

        [OperationContract]
        //自留 {'OrderIDs':'" + _orderIDs + "','SalesRemarks':'" + $("#_stockRemarks").val() + "','SalesUserID':'" + @Session["UserID"] + "','openid':'" + $("#_stockCustomerID").html() + "'}
        string RingStockOrders(string stockOrdersParam);

        /// <summary>
        /// 获取成品购物车业务列表
        /// </summary>
        /// <param name="catsParam"></param>
        /// <returns></returns>
        [OperationContract]
        string GetRingCartSales(string cartsParam);

        /// <summary>
        /// (单个操作)采购订单（处理（1下单成功，待采购）的订单到 (2采购成功，待入库)） --含事务    （改变订单状态 从1到2）
        /// </summary>
        /// <param name="purchaseOrdersParam"></param>
        /// <returns></returns>
        [OperationContract]
        string RingPurchaseOrder(string purchaseOrderParam);

        /// <summary>
        /// //成品列表
        /// </summary>
        /// <param name="getInlaysParam"></param>
        /// <returns></returns>
        [OperationContract]
        string GetGems(string getGemsParam);
        /// <summary>
        /// 单个成品查询
        /// </summary>
        /// <param name="getGemParam"></param>
        /// <returns></returns>
        [OperationContract]
        string GetGem(string getGemParam);

        //修改成品
        [OperationContract]
        string ModGems(string modGemsParam);

        //添加成品
        [OperationContract]
        string AddGems(string modGemsParam);

        //删除成品
        [OperationContract]
        string DeleteGems(string delGemsParam);
        [OperationContract]
        UpFileResult UploadInlayFile(FileUploadMessage request); //成品货表上传

        //%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%彩宝订单相关%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
        [OperationContract]  //说明是一个WCF接口的方法
        string GemRemarkOrder(string remarkOrderParam); //备注订单


        [OperationContract]  //说明是一个WCF接口的方法
        string GemReviseOrders(string reviseOrdersParam); //批量订单改价(单个或多个操作卖出RMB*95折)

        [OperationContract]
        string GemPrintShipOrders(string printShipOrdersParam);//打印出货单

        [OperationContract]
        string GemShipment(string shipParam);//确认出货
        [OperationContract]
        string GemCancelOrders(string cancelOrdersParam);



        [OperationContract]
        string GemReturnOrders(string returnOrdersParam);//退回订单
        [OperationContract]
        string GemDelOrders(string delOrdersParam);//删除订单 9-29

        /// <summary>
        /// 转移订单（修改采购）--"{'OrderIDs':'1111，22222','PurchaseUserID':'" + $("#_purchasesUserID").val() + "'}",
        /// </summary>
        /// <param name="modifyPurchaseUserIDParam"></param>
        /// <returns></returns>
        [OperationContract]
        string GemModifyPurchaseUserID(string modifyPurchaseUserIDParam);
        [OperationContract]
        /// <summary>
        /// 确认到货 （待出货 入库订单）（处理（2采购成功，待入库）的订单到 (3入库成功，待出库)） （改变订单状态 从2到3）{'OrderIDs':'1111，22222','ArrivalTime':'" + $("#_arrivaltime_").val() + "','ApplyID':'" + @Session["UserID"] + "'}
        /// </summary>
        /// <param name="arrivalOrdersParam"></param>
        /// <returns></returns>
        string GemArrivalOrders(string arrivalOrdersParam);
          /// <summary>
        /// 批量删除购物车
        /// </summary>
        /// <param name="submmitOrderParam"></param>
        /// <returns></returns>
        [OperationContract]
        string DeleteAllCart(string cartParam);

        [OperationContract]
        /// <summary>
        /// 取消到货 取消入库 {'OrderIDs':'1111，22222','ApplyID':'" + @Session["UserID"] + "'}
        /// </summary>
        /// <param name="cancelArrivalOrdersParam"></param>
        /// <returns></returns>
        string GemCancelArrivalOrders(string cancelArrivalOrdersParam);
        [OperationContract]
        /// <summary>
        /// 付款{'OrderIDs':'" + _orderIDs + "','BankID':'" + $("#_receiptBankID").val() + "','ReceiptAmount':'" + $("#_receiptAmount").val() + "','ArrivalTime':'" + $("#receiptarrivalTime").val() + "','ApplyID':'" + @Session["UserID"] + "'}",    
        /// </summary>
        /// <param name="receiptOrdersParam"></param>
        /// <returns></returns>
        string GemReceiptOrders(string receiptOrdersParam);

        [OperationContract]
        /// <summary>
        /// 修改采购汇率 {'OrderIDs':'" + _orderIDs + "','PurchaseExchangerate':'"+ $("#PurchaseExchangerate").val() +"'}
        /// </summary>
        /// <param name="arrivalOrdersParam"></param>
        /// <returns></returns>
        string GemExchangeOrders(string exchangeOrdersParam);
        [OperationContract]
        /// <summary>
        /// 修改订单运费￥  {'OrderIDs':'" + _orderIDs + "','Freight':'"+ $("#_freight").val() +"'}
        /// </summary>
        /// <param name="reviseOrdersParam"></param>
        /// <returns></returns>
        string GemModFreight(string freightParam);
        [OperationContract]
        /// <summary>
        /// 制作出货单 {'OrderIDs':'" + _orderIDs + "'}
        /// </summary>
        /// <param name="addShipParam"></param>
        /// <returns></returns>
        string GemAddShip(string addShipParam);
        [OperationContract]
        /// <summary>
        /// 余额收款（1.更新订单支付状态为1已支付，2.更新客户余额） {'OrderIDs':'" + _orderIDs + "','openid':'" + $("#_payCustID").html()  + "','Currency':'" + $("#_currency").val()  + "'}
        /// </summary>
        /// <param name="stockOrdersParam"></param>
        /// <returns></returns>
        string GemPayOrders(string payOrdersParam);

        [OperationContract]
        //自留 {'OrderIDs':'" + _orderIDs + "','SalesRemarks':'" + $("#_stockRemarks").val() + "','SalesUserID':'" + @Session["UserID"] + "','openid':'" + $("#_stockCustomerID").html() + "'}
        string GemStockOrders(string stockOrdersParam);

        /// <summary>
        /// 获取彩宝购物车业务列表
        /// </summary>
        /// <param name="catsParam"></param>
        /// <returns></returns>
        [OperationContract]
        string GetGemCartSales(string cartsParam);
        //获取彩宝购物车业务列表
        [OperationContract]
        string GetGemCarts(string cartsParam);

        /// <summary>
        /// (单个操作)采购订单（处理（1下单成功，待采购）的订单到 (2采购成功，待入库)） --含事务    （改变订单状态 从1到2）
        /// </summary>
        /// <param name="purchaseOrdersParam"></param>
        /// <returns></returns>
        [OperationContract]
        string GemPurchaseOrder(string purchaseOrderParam);

        /// <summary>
        /// 彩宝订单
        /// </summary>
        /// <param name="purchaseOrdersParam"></param>
        /// <returns></returns>
        [OperationContract]
        string GetGemOrders(string param);
        /// <summary>
        /// 彩宝单个订单
        /// </summary>
        /// <param name="param"></param>
        /// <returns></returns>
        [OperationContract]
        string GetGemOrderInfo(string param);
        /// <summary>
        /// 彩宝订单详情
        /// </summary>
        /// <param name="editOrderInfoParam"></param>
        /// <returns></returns>
        [OperationContract]
        string EditGemOrderInfo(string editOrderInfoParam);
        /// <summary>
        /// 彩宝作废订单
        /// </summary>
        /// <param name="cancelGemOrdersParam"></param>
        /// <returns></returns>
        [OperationContract]
        string CancelGemOrders(string cancelGemOrdersParam);
        //订单状态统计
        [OperationContract]
        string GemOrderNumber(string orderNumberParam);
         /// <summary>
         /// 彩宝支付状态统计
         /// </summary>
         /// <param name="orderPaymentStatusNumberParam"></param>
         /// <returns></returns>
        [OperationContract]
        string GemOrderPaymentStatusNumber(string orderPaymentStatusNumberParam);
        //加入购物车
        [OperationContract]
        string AddGemsCart(string gemsParam);

        [OperationContract]
        string RemoveGemsCart(string removeFromCartParam);
          /// <summary>
         /// 彩宝提交订单
         /// </summary>
         /// <param name="createOrderByCartParam"></param>
         /// <returns></returns>
        [OperationContract]
        string AddGemsOrder(string createOrderByCartParam);
        [OperationContract]
        UpFileResult UploadGemsFile(FileUploadMessage request); //成品货表上传
           /// <summary>
         /// 查询出货单
         /// </summary>
         /// <param name="CancelGemOrdersParam"></param>
         /// <returns></returns>
        [OperationContract]
        string GetAllShipNo(string shipOrdersParam);
          /// <summary>
         /// 查询订单通过出货单号
         /// </summary>
         /// <param name="CancelGemOrdersParam"></param>
         /// <returns></returns>
        [OperationContract]
        string GetAllOrderByShipNo(string shipOrdersParam);
         /// 删除出货单里面的订单
        [OperationContract]
        string DeleteOrderInShipNoByOrderIdsOrShipNo(string shipOrdersParam);
        /// <summary>
        /// 权限相关
        /// </summary>
        /// <returns></returns>
        [OperationContract]
        string GetJobTitleInfo();
        [OperationContract]
        string GetMenuList(string menuParam);

        /// <summary>
        ///  修改 职能
        /// </summary>
        /// <param name="batchUpdateDiaParam"></param>
        /// <returns></returns>
        [OperationContract]
        string UpdateJobTitle(string updateParam);
        /// <summary>
        ///  新增 职能
        /// </summary>
        /// <param name="batchUpdateDiaParam"></param>
        /// <returns></returns>
        [OperationContract]
        string AddJobTitle(string addParam);

        //币种设置 0 all  ,1 rmb ,2 usd
        [OperationContract]
        string EditGlobalCurrency(string editGlobalParam);
        [OperationContract]
        UpFileResult UploadParcelsFile(FileUploadMessage request);
        [OperationContract]
        UpFileResult UploadEmeraldsFile(FileUploadMessage request);
        [OperationContract]
        UpFileResult UploadPrimeGoldsFile(FileUploadMessage request);
        [OperationContract]
        UpFileResult UploadInlaySettingsFile(FileUploadMessage request);
        #region 其它订单相关

        [OperationContract]
        string AddOtherBigType(string addOrderParam);
        [OperationContract]
        string AddOtherSmallType(string addOrderParam);
        [OperationContract]
        string GetOtherBigType();
        [OperationContract]
        string GetOtherSmallType(string getOrderParam);
        [OperationContract]
        string AddOtherOrder(string createOrderParam);
        [OperationContract]
        string AddUnitName(string createParam);
        [OperationContract]
        string GetUnit(string getParam);
        //&&&&&&&&&&&&以下为 订单操作相关&&&&&&&&&&&&&&&&
        [OperationContract]
        string GetOtherOrders(string ordersParam);
        [OperationContract]///订单状态统计
        string OtherOrderNumber(string orderNumberParam);
        /// 支付状态统计
        [OperationContract]
        string OtherOrderPaymentStatusNumber(string orderPaymentStatusNumberParam);
        /// （单个操作）备注订单 (销售员备注、采购员备注、物流员备注)  --含事务
        [OperationContract]
        string OtherRemarkOrder(string remarkOrderParam);
        /// 批量订单改价(单个或多个操作 卖出退点+1 或卖出RMB*95折)
        [OperationContract]
        string OtherReviseOrders(string reviseOrdersParam);
        [OperationContract] /// 打印出货单
        string OtherPrintShipOrders(string printShipOrdersParam);
        [OperationContract]  /// 确认出货
        string Othershipment(string shipParam);
        /// 作废订单（1下单成功，采购中） --含事务     （改变订单状态 从1到10）
        [OperationContract]
        string OtherCancelOrders(string cancelOrdersParam);
        [OperationContract] /// 退回
        string OtherReturnOrders(string returnOrdersParam);
        //删除作废订单
        [OperationContract]
        string OtherDelOrders(string delOrdersParam);
        /// 转移订单（修改采购）--含事务        （不改变订单状态）"{'OrderIDs':'1111，22222','PurchaseUserID':'" + $("#_purchasesUserIDs").val() + "'}",
        [OperationContract]
        string OtherModifyPurchaseUserID(string modifyPurchaseUserIDParam);
        /// 确认到货 （待出货 入库订单）（处理（2采购成功，待入库）的订单到 (3入库成功，待出库)） --含事务   （改变订单状态 从2到3）{'OrderIDs':'1111，22222','ArrivalTime':'" + $("#_arrivaltime_").val() + "','ApplyID':'" + @Session["UserID"] + "'}
        [OperationContract]
        string OtherArrivalOrders(string arrivalOrdersParam);
        /// 取消到货 取消入库 {'OrderIDs':'1111，22222','ApplyID':'" + @Session["UserID"] + "'}
        [OperationContract]
        string OtherCancelArrivalOrders(string cancelArrivalOrdersParam);
        /// 付款{'OrderIDs':'" + _orderIDs + "','BankID':'" + $("#_receiptBankID").val() + "','ReceiptAmount':'" + $("#_receiptAmount").val() + "','ArrivalTime':'" + $("#receiptarrivalTime").val() + "','ApplyID':'" + @Session["UserID"] + "'}",    
        [OperationContract]
        string OtherReceiptOrders(string receiptOrdersParam);
        /// 修改采购汇率 9-6 {'OrderIDs':'" + _orderIDs + "','PurchaseExchangerate':'"+ $("#PurchaseExchangerate").val() +"'}
        //[OperationContract]
        //string OtherExchangeOrders(string exchangeOrdersParam);
        /// 修改订单运费￥  {'OrderIDs':'" + _orderIDs + "','Freight':'"+ $("#_freight").val() +"'}
        [OperationContract]
        string OtherModFreight(string freightParam);
        /// 制作出货单 {'OrderIDs':'" + _orderIDs + "'}
        [OperationContract]
        string OtherAddShip(string addShipParam);
        /// 余额收款（1.更新订单支付状态为1已支付，2.更新客户余额） {'OrderIDs':'" + _orderIDs + "','openid':'" + $("#_payCustID").html()  + "','Currency':'" + $("#_currency").val()  + "'}
        [OperationContract]
        string OtherPayOrders(string payOrdersParam);
        //自留 {'OrderIDs':'" + _orderIDs + "','SalesRemarks':'" + $("#_stockRemarks").val() + "','SalesUserID':'" + @Session["UserID"] + "','openid':'" + $("#_stockCustomerID").html() + "'}
        [OperationContract]
        string OtherstockOrders(string stockOrdersParam);
        /// (单个操作)采购订单（处理（1下单成功，待采购）的订单到 (2采购成功，待入库)） --含事务    （改变订单状态 从1到2）
        [OperationContract]
        string OtherPurchaseOrder(string purchaseOrderParam);
        [OperationContract] /// 单个订单
        string GetOtherOrder(string orderInfoParam);
       [OperationContract] /// 修改订单
        string EditOtherOrder(string editOrderInfoParam);
        /// 作废订单
        [OperationContract]
        string CancelOtherOrders(string cancelOtherOrdersParam);
        #endregion
        #region 翡翠相关
        /// <summary>
        /// //翡翠列表
        /// </summary>
        /// <param name="getEmeraldsParam"></param>
        /// <returns></returns>
        [OperationContract]
        string GetEmeralds(string getEmeraldsParam);
        /// <summary>
        /// 单个翡翠查询
        /// </summary>
        /// <param name="getEmeraldParam"></param>
        /// <returns></returns>
        [OperationContract]
        string GetEmerald(string getEmeraldParam);
        //修改翡翠
        [OperationContract]
        string ModEmeralds(string modEmeraldsParam);
        //添加翡翠
        [OperationContract]
        string AddEmeralds(string modEmeraldsParam);
        //删除翡翠
        [OperationContract]
        string DeleteEmeralds(string delEmeraldsParam);

        /// <summary>
        /// 翡翠提交订单
        /// </summary>
        /// <param name="createOrderByCartParam"></param>
        /// <returns></returns>
        [OperationContract]
        string AddEmeraldsOrder(string createOrderByCartParam);


        /// <summary>
        ///加入购物车
        /// </summary>
        /// <param name="ringParam"></param>
        /// <returns></returns>
        [OperationContract]
        string AddEmeraldsCart(string emeraldsParam);

        /// <summary>
        /// 获取成品购物车业务列表
        /// </summary>
        /// <param name="catsParam"></param>
        /// <returns></returns>
        [OperationContract]
        string GetEmeraldCartSales(string cartsParam);
        /// <summary>
        /// 购物车列表
        /// </summary>
        /// <param name="cartsParam"></param>
        /// <returns></returns>
        [OperationContract]
        string GetEmeraldCarts(string cartsParam);
        /// <summary>
        /// 移除购物车
        /// </summary>
        /// <param name="ringCartId"></param>
        /// <returns></returns>
        [OperationContract]
        string RemoveEmeraldsCart(string removeFromCartParam);
        /// <summary>
        ///订单状态统计
        /// </summary>
        /// <param name="orderNumberParam"></param>
        /// <returns></returns>
        [OperationContract]
        string EmeraldOrderNumber(string orderNumberParam);


        /// <summary>
        /// 支付状态统计
        /// </summary>
        /// <param name="orderPaymentStatusNumberParam"></param>
        /// <returns></returns>
        [OperationContract]
        string EmeraldOrderPaymentStatusNumber(string orderPaymentStatusNumberParam);
        /// <summary>
        /// 翡翠订单
        /// </summary>
        /// <param name="catsParam"></param>
        /// <returns></returns>
        [OperationContract]
        string GetEmeraldOrders(string ordersParam);


        //翡翠订单相关

        /// <summary>
        /// （单个操作）备注订单 (销售员备注、采购员备注、物流员备注)  --含事务
        /// </summary>
        /// <param name="remarkOrdersParam"></param>
        /// <returns></returns>
        [OperationContract]
        string EmeraldRemarkOrder(string remarkOrderParam);
        /// <summary>
        /// 批量订单改价(单个或多个操作 卖出退点+1 或卖出RMB*95折)
        /// </summary>
        /// <param name="reviseOrdersParam"></param>
        /// <returns></returns>
        [OperationContract]
        string EmeraldReviseOrders(string reviseOrdersParam);

        /// <summary>
        /// 打印出货单 9-20
        /// </summary>
        /// <param name="deliveryOrdersParam"></param>
        /// <returns></returns>
        [OperationContract]
        string EmeraldPrintShipOrders(string printShipOrdersParam);
        /// <summary>
        /// 确认出货
        /// </summary>
        /// <param name="shipParam"></param>
        /// <returns></returns>
        [OperationContract]
        string EmeraldShipment(string shipParam);
        /// <summary>
        /// 作废订单（1下单成功，采购中） --含事务     （改变订单状态 从1到10）
        /// </summary>
        /// <param name="cancelOrdersParam"></param>
        /// <returns></returns>
        [OperationContract]
        string EmeraldCancelOrders(string cancelOrdersParam);


        /// <summary>
        /// 退回
        /// </summary>
        /// <param name="returnOrdersParam"></param>
        /// <returns></returns>
        [OperationContract]
        string EmeraldReturnOrders(string returnOrdersParam);
        //删除作废订单
        [OperationContract]
        string EmeraldDelOrders(string delOrdersParam);

        /// <summary>
        /// 转移订单（修改采购）--含事务        （不改变订单状态）"{'OrderIDs':'1111，22222','PurchaseUserID':'" + $("#_purchasesUserIDs").val() + "'}",
        /// </summary>
        /// <param name="modifyPurchaseUserIDParam"></param>
        /// <returns></returns>
        [OperationContract]
        string EmeraldModifyPurchaseUserID(string modifyPurchaseUserIDParam);
        /// <summary>
        /// 确认到货 （待出货 入库订单）（处理（2采购成功，待入库）的订单到 (3入库成功，待出库)） --含事务   （改变订单状态 从2到3）{'OrderIDs':'1111，22222','ArrivalTime':'" + $("#_arrivaltime_").val() + "','ApplyID':'" + @Session["UserID"] + "'}
        /// </summary>
        /// <param name="arrivalOrdersParam"></param>
        /// <returns></returns>
        [OperationContract]
        string EmeraldArrivalOrders(string arrivalOrdersParam);
        /// <summary>
        /// 取消到货 取消入库 {'OrderIDs':'1111，22222','ApplyID':'" + @Session["UserID"] + "'}
        /// </summary>
        /// <param name="cancelArrivalOrdersParam"></param>
        /// <returns></returns>
        [OperationContract]
        string EmeraldCancelArrivalOrders(string cancelArrivalOrdersParam);
        /// <summary>
        /// 付款{'OrderIDs':'" + _orderIDs + "','BankID':'" + $("#_receiptBankID").val() + "','ReceiptAmount':'" + $("#_receiptAmount").val() + "','ArrivalTime':'" + $("#receiptarrivalTime").val() + "','ApplyID':'" + @Session["UserID"] + "'}",    
        /// </summary>
        /// <param name="receiptOrdersParam"></param>
        /// <returns></returns>
        [OperationContract]
        string EmeraldReceiptOrders(string receiptOrdersParam);
        /// <summary>
        /// 修改采购汇率 9-6 {'OrderIDs':'" + _orderIDs + "','PurchaseExchangerate':'"+ $("#PurchaseExchangerate").val() +"'}
        /// </summary>
        /// <param name="arrivalOrdersParam"></param>
        /// <returns></returns>
        [OperationContract]
        string EmeraldExchangeOrders(string exchangeOrdersParam);

        /// <summary>
        /// 修改订单运费￥  {'OrderIDs':'" + _orderIDs + "','Freight':'"+ $("#_freight").val() +"'}
        /// </summary>
        /// <param name="reviseOrdersParam"></param>
        /// <returns></returns>
        [OperationContract]
        string EmeraldModFreight(string freightParam);

        /// <summary>
        /// 制作出货单 {'OrderIDs':'" + _orderIDs + "'}
        /// </summary>
        /// <param name="addShipParam"></param>
        /// <returns></returns>
        [OperationContract]
        string EmeraldAddShip(string addShipParam);

        /// <summary>
        /// 余额收款（1.更新订单支付状态为1已支付，2.更新客户余额） {'OrderIDs':'" + _orderIDs + "','openid':'" + $("#_payCustID").html()  + "','Currency':'" + $("#_currency").val()  + "'}
        /// </summary>
        /// <param name="stockOrdersParam"></param>
        /// <returns></returns>
        [OperationContract]
        string EmeraldPayOrders(string payOrdersParam);
        [OperationContract]
        string EmeraldStockOrders(string stockOrdersParam);
        /// <summary>
        /// (单个操作)采购订单（处理（1下单成功，待采购）的订单到 (2采购成功，待入库)） --含事务    （改变订单状态 从1到2）
        /// </summary>
        /// <param name="purchaseOrdersParam"></param>
        /// <returns></returns>
        [OperationContract]
        string EmeraldPurchaseOrder(string purchaseOrderParam);
        /// <summary>
        /// 单个订单
        /// </summary>
        /// <param name="orderInfoParam"></param>
        /// <returns></returns>
        [OperationContract]
        string GetEmeraldOrderInfo(string orderInfoParam);
        /// <summary>
        /// 修改订单
        /// </summary>
        /// <param name="editOrderInfoParam"></param>
        /// <returns></returns>
        [OperationContract]
        string EditEmeraldOrderInfo(string editOrderInfoParam);

        /// <summary>
        /// 作废订单
        /// </summary>
        /// <param name="CancelEmeraldOrdersParam"></param>
        /// <returns></returns>
        [OperationContract]
        string CancelEmeraldOrders(string cancelEmeraldOrdersParam);
         
 
        #endregion 翡翠结束
        #region 收货地址
        [OperationContract]
        string DeleteReceivingAddress(string param);
        [OperationContract]
        string EditReceivingAddress(string param);
        [OperationContract]
        string GetReceivingAddress(string param);
        [OperationContract]
        string AddReceivingAddress(string param);
        #endregion 收货地址end

        #region 微信用户
        [OperationContract]
        string AddCustomer(string param);

        [OperationContract]
        string GetCustomerInfo(string param);
        [OperationContract]
        string GetCustomerList(string getCustomerListParam);
        [OperationContract]
        string GetCustomers(string getCustomersParam);
        [OperationContract]
        string EditCustomer(string editCustomerParam);
        [OperationContract]
        string CustomerNumber(string customerNumberParam);
        [OperationContract]
        int GetCustomerIdByOpenid(string openid);
        #endregion

        #region 素金
        /// <summary>
        /// 新增素金
        /// </summary>
        /// <param name="PrimeGoldsParam"></param>
        /// <returns></returns>
        [OperationContract]
        string AddPrimeGolds(string PrimeGoldsParam);
        /// <summary>
        /// 删除素金
        /// </summary>
        /// <param name="PrimeGoldsParam"></param>
        /// <returns></returns>
        [OperationContract]
        string DeletePrimeGolds(string PrimeGoldsParam);
        /// <summary>
        /// 查询素金
        /// </summary>
        /// <param name="PrimeGoldsParam"></param>
        /// <returns></returns>
        [OperationContract]
        string GetPrimeGold(string PrimeGoldParam);
        /// <summary>
        /// 更新素金
        /// </summary>
        /// <param name="PrimeGoldsParam"></param>
        /// <returns></returns>
        [OperationContract]
        string ModPrimeGolds(string PrimeGoldsParam);
        /// <summary>
        /// 素金
        /// </summary>
        /// <param name="getPrimeGoldsParam"></param>
        /// <returns></returns>
        [OperationContract]
        string GetPrimeGoldsFilters(string getPrimeGoldsParam);

     

        /// <summary>
        /// 素金提交订单
        /// </summary>
        /// <param name="createOrderByCartParam"></param>
        /// <returns></returns>
        [OperationContract]
        string AddPrimeGoldsOrder(string createOrderByCartParam);
        /// <summary>
        ///加入购物车
        /// </summary>
        /// <param name="ringParam"></param>
        /// <returns></returns>
        [OperationContract]
        string AddPrimeGoldsCart(string primeGoldsParam);
        /// <summary>
        /// 获取成品购物车业务列表
        /// </summary>
        /// <param name="catsParam"></param>
        /// <returns></returns>
        [OperationContract]
        string GetPrimeGoldCartSales(string cartsParam);
        /// <summary>
        /// 购物车列表
        /// </summary>
        /// <param name="cartsParam"></param>
        /// <returns></returns>
        [OperationContract]
        string GetPrimeGoldsCarts(string cartsParam);
        /// <summary>
        /// 移除购物车
        /// </summary>
        /// <param name="ringCartId"></param>
        /// <returns></returns>
        [OperationContract]
        string RemovePrimeGoldsCart(string removeFromCartParam);
        /// <summary>
        ///订单状态统计
        /// </summary>
        /// <param name="orderNumberParam"></param>
        /// <returns></returns>
        [OperationContract]
        string PrimeGoldsOrderNumber(string orderNumberParam);
        /// <summary>
        /// 支付状态统计
        /// </summary>
        /// <param name="orderPaymentStatusNumberParam"></param>
        /// <returns></returns>
        [OperationContract]
        string PrimeGoldsOrderPaymentStatusNumber(string orderPaymentStatusNumberParam);
        /// <summary>
        /// 素金订单
        /// </summary>
        /// <param name="catsParam"></param>
        /// <returns></returns>
        [OperationContract]
        string GetPrimeGoldsOrders(string ordersParam);
        //素金订单相关
        /// <summary>
        /// （单个操作）备注订单 (销售员备注、采购员备注、物流员备注)  --含事务
        /// </summary>
        /// <param name="remarkOrdersParam"></param>
        /// <returns></returns>
        [OperationContract]
        string PrimeGoldsRemarkOrder(string remarkOrderParam);
        /// <summary>
        /// 批量订单改价(单个或多个操作 卖出退点+1 或卖出RMB*95折)
        /// </summary>
        /// <param name="reviseOrdersParam"></param>
        /// <returns></returns>
        [OperationContract]
        string PrimeGoldsReviseOrders(string reviseOrdersParam);
        /// <summary>
        /// 打印出货单 9-20
        /// </summary>
        /// <param name="deliveryOrdersParam"></param>
        /// <returns></returns>
        [OperationContract]
        string PrimeGoldsPrintShipOrders(string printShipOrdersParam);
        /// <summary>
        /// 确认出货
        /// </summary>
        /// <param name="shipParam"></param>
        /// <returns></returns>
        [OperationContract]
        string PrimeGoldsShipment(string shipParam);
        /// <summary>
        /// 作废订单（1下单成功，采购中） --含事务     （改变订单状态 从1到10）
        /// </summary>
        /// <param name="cancelOrdersParam"></param>
        /// <returns></returns>
        [OperationContract]
        string PrimeGoldsCancelOrders(string cancelOrdersParam);
        /// <summary>
        /// 退回
        /// </summary>
        /// <param name="returnOrdersParam"></param>
        /// <returns></returns>
        [OperationContract]
        string PrimeGoldsReturnOrders(string returnOrdersParam);
        /// <summary>
        /// 删除作废订单
        /// </summary>
        /// <param name="delOrdersParam"></param>
        /// <returns></returns>
        [OperationContract]
        string PrimeGoldsDelOrders(string delOrdersParam);
        /// <summary>
        /// 转移订单（修改采购）--含事务        （不改变订单状态）"{'OrderIDs':'1111，22222','PurchaseUserID':'" + $("#_purchasesUserIDs").val() + "'}",
        /// </summary>
        /// <param name="modifyPurchaseUserIDParam"></param>
        /// <returns></returns>
        [OperationContract]
        string PrimeGoldsModifyPurchaseUserID(string modifyPurchaseUserIDParam);
        /// <summary>
        /// 确认到货 （待出货 入库订单）（处理（2采购成功，待入库）的订单到 (3入库成功，待出库)） --含事务   （改变订单状态 从2到3）{'OrderIDs':'1111，22222','ArrivalTime':'" + $("#_arrivaltime_").val() + "','ApplyID':'" + @Session["UserID"] + "'}
        /// </summary>
        /// <param name="arrivalOrdersParam"></param>
        /// <returns></returns>
        [OperationContract]
        string PrimeGoldsArrivalOrders(string arrivalOrdersParam);
        /// <summary>
        /// 取消到货 取消入库 {'OrderIDs':'1111，22222','ApplyID':'" + @Session["UserID"] + "'}
        /// </summary>
        /// <param name="cancelArrivalOrdersParam"></param>
        /// <returns></returns>
        [OperationContract]
        string PrimeGoldsCancelArrivalOrders(string cancelArrivalOrdersParam);
        /// <summary>
        /// 付款{'OrderIDs':'" + _orderIDs + "','BankID':'" + $("#_receiptBankID").val() + "','ReceiptAmount':'" + $("#_receiptAmount").val() + "','ArrivalTime':'" + $("#receiptarrivalTime").val() + "','ApplyID':'" + @Session["UserID"] + "'}",    
        /// </summary>
        /// <param name="receiptOrdersParam"></param>
        /// <returns></returns>
        [OperationContract]
        string PrimeGoldsReceiptOrders(string receiptOrdersParam);
        /// <summary>
        /// 修改采购汇率 9-6 {'OrderIDs':'" + _orderIDs + "','PurchaseExchangerate':'"+ $("#PurchaseExchangerate").val() +"'}
        /// </summary>
        /// <param name="arrivalOrdersParam"></param>
        /// <returns></returns>PrimeGold
        [OperationContract]
        string PrimeGoldsExchangeOrders(string exchangeOrdersParam);
        /// <summary>
        /// 修改订单运费￥  {'OrderIDs':'" + _orderIDs + "','Freight':'"+ $("#_freight").val() +"'}
        /// </summary>
        /// <param name="reviseOrdersParam"></param>
        /// <returns></returns>
        [OperationContract]
        string PrimeGoldsModFreight(string freightParam);
        /// <summary>
        /// 制作出货单 {'OrderIDs':'" + _orderIDs + "'}
        /// </summary>
        /// <param name="addShipParam"></param>
        /// <returns></returns>
        [OperationContract]
        string PrimeGoldsAddShip(string addShipParam);
        /// <summary>
        /// 余额收款（1.更新订单支付状态为1已支付，2.更新客户余额） {'OrderIDs':'" + _orderIDs + "','CustomerID':'" + $("#_payCustID").html()  + "','Currency':'" + $("#_currency").val()  + "'}
        /// </summary>
        /// <param name="stockOrdersParam"></param>
        /// <returns></returns>
        [OperationContract]
        string PrimeGoldsPayOrders(string payOrdersParam);
        [OperationContract]
        string PrimeGoldsStockOrders(string stockOrdersParam);
        /// <summary>
        /// (单个操作)采购订单（处理（1下单成功，待采购）的订单到 (2采购成功，待入库)） --含事务    （改变订单状态 从1到2）
        /// </summary>
        /// <param name="purchaseOrdersParam"></param>
        /// <returns></returns>
        [OperationContract]
        string PrimeGoldsPurchaseOrder(string purchaseOrderParam);
        /// <summary>
        /// 单个订单
        /// </summary>
        /// <param name="orderInfoParam"></param>
        /// <returns></returns>
        [OperationContract]
        string GetPrimeGoldsOrderInfo(string orderInfoParam);
        /// <summary>
        /// 修改订单
        /// </summary>
        /// <param name="editOrderInfoParam"></param>
        /// <returns></returns>
        [OperationContract]
        string EditPrimeGoldsOrderInfo(string editOrderInfoParam);
        /// <summary>
        /// 作废订单
        /// </summary>
        /// <param name="CancelEmeraldOrdersParam"></param>
        /// <returns></returns>
        [OperationContract]
        string CancelPrimeGoldsOrders(string cancelEmeraldOrdersParam);

        [OperationContract]
        string BindOnAccount(string param);
        [OperationContract]
        string Register(string regInfo);
        [OperationContract]
        string IsNoRegister(string param);
        [OperationContract]
        string ValidateCode(string param);
        #endregion
        #region 客户相关
        [OperationContract]
        string CustomerLogin(string customerLoginParam);
        #endregion



        #region 此处存放首页特定栏目相关的函数


        //本店产品
        [OperationContract]
        string GetProducts();


        [OperationContract]
        string EditProduct(string param);


        //品牌介绍
        [OperationContract]
        string GetBrand();
        [OperationContract]
        string EditBrand(string param);
        //预约进店
        [OperationContract]
        string GetAppointment();

        //新闻，  //帮助中心support center

        [OperationContract]
        string GetNews(string param);


        [OperationContract]
        string EditNews(string param);

        [OperationContract]
        string AddNews(string param);
        [OperationContract]
        string DelNews(string param);
        #endregion 此处存放首页特定栏目相关的函数

        #region
         /// <summary>
        /// 提交订单
        /// </summary>
        /// <param name="submmitOrderParam"></param>
        /// <returns></returns>
        [OperationContract]
        string SubmitOrders(string submmitOrderParam);
        /// <summary>
        /// 查询订单
        /// </summary>
        /// <param name="strParam"></param>
        /// <returns></returns>
        [OperationContract]
        string GetAllOrdersList(string strParam);
        /// <summary>
        /// 更新订单
        /// </summary>
        /// <param name="strParam"></param>
        /// <returns></returns>
        [OperationContract]
        string UpdateProductsOrder(string strParam); 
        /// <summary>
        /// 查询购物车
        /// </summary>
        /// <param name="selectParam"></param>
        /// <returns></returns>
        [OperationContract]
        string GetAllCartsList(string strParam);

        /// <summary>
        /// 加入购物车
        /// </summary>
        /// <param name="strParam"></param>
        /// <returns></returns>
        [OperationContract]
        string AddCart(string strParam);

        /// <summary>
        ///  删除购物车
        /// </summary>
        /// <param name="strParam"></param>
        /// <returns></returns>
        [OperationContract]
        string DeleteCart(string strParam); 


        /// <summary>
        /// 团队查询订单
        /// </summary>
        /// <param name="strParam"></param>
        /// <returns></returns>
        [OperationContract]
        string GetTeamOrdersList(string strParam);

         /// <summary>
        /// 打印出货单 9-20
        /// </summary>
        /// <param name="deliveryOrdersParam"></param>
        /// <returns></returns>
        [OperationContract]
        string GetPrintShipOrders(string printShipOrdersParam);

        /// <summary>
        /// 团队 买价
        /// </summary>
        /// <param name="param"></param>
        /// <returns></returns>
        [OperationContract]
        string updatePriceUSD(string param);

         /// <summary>
        /// 团队 采汇
        /// </summary>
        /// <param name="param"></param>
        /// <returns></returns>
        [OperationContract]
        string updatePurchaseExchangerate(string param);

         /// <summary>
        /// 收款
        /// </summary>
        /// <param name="stockOrdersParam"></param>
        /// <returns></returns>
        [OperationContract]
        string PayAndRechargeOrders(string payOrdersParam); 

        /// <summary>
        /// 团队 更新所在地
        /// </summary>
        /// <param name="param"></param>
        /// <returns></returns>
        [OperationContract]
        string UpdatePlace(string strParam);
        /// <summary>
        /// 回库
        /// </summary>
        /// <param name="addDiaParam"></param>
        /// <returns></returns>
        [OperationContract]
        string ReStock(string addDiaParam);

         /// <summary>
        //客户修改密码（公司客户）
        /// </summary>
        /// <param name="customerModifyPasswordParam"></param>
        /// <returns></returns>
        [OperationContract]
        string CustomerModifyPassword(string customerModifyPasswordParam);

        /// <summary>
        /// 查询客户购物车中商品的数量
        /// </summary>
        /// <param name="strParam"></param>
        /// <returns></returns>
        [OperationContract]
        string getCartNumByCustomerID(string strParam);

        /// <summary>
        /// 批量修改裸钻到货时间
        /// </summary>
        /// <param name="param"></param>
        /// <returns></returns>
        [OperationContract]
        string UpdateArrivalTime(string param);
        /// <summary>
        /// 现货修改付款状态
        /// </summary>
        /// <param name="param"></param>
        /// <returns></returns>
        [OperationContract]
        string UpdateReciptStatus(string param);
        /// <summary>
        /// 获取采购名称
        /// </summary>
        /// <param name="param"></param>
        /// <returns></returns>
        [OperationContract]
        string GetPurchaseAgents(string param);
         /// <summary>
         /// 现货修改买价
         /// </summary>
         /// <param name="param">"filter":{"ID":["111","222"]},"factor":"1.1","field":"PurchaseUSDPerGrain"</param>
         /// <returns></returns>
        [OperationContract]
        string UpdateStockingPrice(string param);
        /// <summary>
        /// 现货修改汇率
        /// </summary>
        /// <param name="param">"filter":{"ID":["111","222"]},"value":"7","field":"PurchaseExchange"</param>
        /// <returns></returns>
        [OperationContract]
        string UpdatesStockingPurchaseExchange(string param);
        /// <summary>
        /// 现货上架
        /// </summary>
        /// <param name="param"></param>
        /// <returns></returns>
        [OperationContract]
        string OnStocksBatch(string param);
        /// <summary>
        /// 现货下架
        /// </summary>
        /// <param name="param"></param>
        /// <returns></returns>
        [OperationContract]
        string OffStocksBatch(string param);
         
        #endregion

        [OperationContract]
        string QuerySupplierRole(string param);
        [OperationContract]
        string AddAppointment(string param);
        [OperationContract]
        string CustomerLoginAndRegister(string regInfo);
        [OperationContract]
        string GetCartsCount(string cartsParam); 
        #region  微信登录相关
        /// <summary>
        /// 添加微信登录的用户信息
        /// </summary>
        /// <param name="param"></param>
        /// <param name="type">微信用户类型，默认公众号用户</param>
        /// <returns></returns>
        [OperationContract]
        bool AddWXCustomer(string param, int type = 0);
        #endregion

        #region 现货增删改查
        /// <summary>
        /// 新增商品
        /// </summary>
        /// <param name="strParam"></param>
        /// <returns></returns>
        [OperationContract]
        string AddProductData(string strParam);
        /// <summary>
        /// 删除商品
        /// </summary>
        /// <param name="strParam"></param>
        /// <returns></returns>
        [OperationContract]
        string DelProductData(string strParam);
        /// <summary>
        /// 现货修改
        /// </summary>
        /// <param name="strParam"></param>
        /// <returns></returns>
        [OperationContract]
        string ModifyProductData(string strParam);
        /// <summary>
        /// 查货
        /// </summary>
        /// <param name="strParam"></param>
        /// <returns></returns>
        [OperationContract]
        string GetProductData(string strParam);
        /// <summary>
        /// 查询单个明细
        /// </summary>
        /// <param name="strParam"></param>
        /// <returns></returns>
        [OperationContract]
        string GetProductDataById(string strParam);
        /// <summary>
        /// 修改金价
        /// </summary>
        /// <param name="strParam"></param>
        /// <param name="type"></param>
        /// <returns></returns>
        [OperationContract]
        string PutPrimeGoldsPrice(string strParam);
        /// <summary>
        /// 获取金价
        /// </summary>
        /// <param name="strParam"></param>
        /// <returns></returns>
        [OperationContract]
        string GetPrimeGoldsPrice(string strParam);
        #endregion

        #region 现货批量修改
        /// <summary>
        /// 批量修改商品
        /// </summary>
        /// <param name="strParam"></param>
        /// <returns></returns>
        [OperationContract]
        string ModifyProducts(string strParam);
        /// <summary>
        /// 批量修改商品
        /// </summary>
        /// <param name="strParam"></param>
        /// <returns></returns>
        [OperationContract]
        string DelteProducts(string strParam);
        /// <summary>
        /// 更新付款状态
        /// </summary>
        /// <param name="param"></param>
        /// <returns></returns>
        [OperationContract]
        string UpdateProductPayStatus(string strParam);
        /// <summary>
        /// 批量改价
        /// </summary>
        /// <param name="strParam"></param>
        /// <returns></returns>
        [OperationContract]
        string UpdateProductPrice(string strParam);
        #endregion

        #region 批量上传图片视频 
        /// <summary>
        /// 批量上传图片视频
        /// </summary>
        /// <param name="imageParam"></param>
        /// <returns></returns>
        [OperationContract]
        UpFileResult UploadImagesAndVideos(ImageUploadMessage imageParam);
        #endregion

        /// <summary>
        /// 获取市场倍率
        /// </summary>
        /// <returns></returns>
        [OperationContract]
        string GetMarketRate();


        /// <summary>
        /// 添加
        /// </summary>
        /// <param name="param"></param>
        /// <returns></returns>
        [OperationContract]
        string AddCustomerDesign(string param);


        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="param"></param>
        /// <returns></returns>
        [OperationContract]
        string DelCustomerDesign(string param);

        /// <summary>
        /// 更新
        /// </summary>
        /// <param name="param"></param>
        /// <returns></returns>
        [OperationContract]
        string UpdateCustomerDesign(string param);

        /// <summary>
        /// 查
        /// </summary>
        /// <param name="strParam"></param>
        /// <returns></returns>
        [OperationContract]
        string GetCustomerDesign(string strParam);

        /// <summary>
        /// 查询所有商品库存 TAG
        /// </summary>
        /// <param name="strParam"></param>
        /// <returns></returns>
        [OperationContract]
        string GetAllProducts(string strParam);

    }
}
